Skip to content

fix(console): a stored settings select, radio or multiselect value the setting no longer offers reads as "no longer available" - #37536

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-37480-settings-retired-option
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-37480-settings-retired-option

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37480

Clause-②: no
Metadata-protocol: none

Ruling record for the card's second half: comment 7190223182 on #37480 (the maintainer chose B, 「维持现状,只写文档」: stored rows stay, the manual removal path is documented). No server code changes.

维护者速读

  • 管理员在设置页看下拉框、单选组或多选组时,如果之前保存的选项已被新版本移除,原来显示空白或一个都没选中,现在显示为「原值(已不可用)」。
  • 属于知识库适配器下线后的善后:替保存过已下线选项的管理员解决「看不出配置了什么」的问题。
  • 出错时最多是这一项显示不对,保存行为不变,可直接撤回。
  • 无。

What changes

  • Console settings select (SettingsField.tsx, the closed select arm without valueDomain): when the stored value is non-empty and not among the field's current options, the list gets one disabled item for that code, labelled with the new locale key console.settingsView.selectValueRetired (VALUE (no longer available)). Radix shows the selected item's text, so the trigger now names the stored code instead of reading blank. Picking a current option is an ordinary declared-key write; the retired item cannot be picked back. Values among the options and an unset value render as before.
  • Console settings radio (the radio arm of the same file): the same condition adds one disabled RadioGroupItem for the stored code, first in the group and checked (the group's value is the stored code), labelled with the same key. Chosen over a read-only line beside the group so the group itself says what is stored; the current options stay enabled.
  • Console settings multiselect (the multiselect arm): each stored array member outside options gets one checked checkbox, first in the grid, labelled with the same key. Measured save behaviour: ticking a current option builds the next array from the whole stored array (unchanged from before), so the retired member stays in what is saved, exactly as it did while it was invisible; the server refuses a write of that key while the array holds a value outside the options (invalid_option, settings-service.ts option check over select/radio/multiselect), as it already did. So the retired checkbox is deliberately NOT disabled: unticking it removes the member from the array (the way to make the field saveable again), and once removed it leaves the list and cannot be ticked back. A disabled checkbox would have left the field unsaveable with no way out.
  • Locale key console.settingsView.selectValueRetired in all eleven @object-ui/i18n packs (real translations). The Console's settings strings live in ui/packages/i18n/src/locales/*, so that is where the key goes (the claim's "Console locale bundles").
  • Docs (content/docs/protocol/kernel/config-resolution.mdx, new ### Retired keys and options under Secrets): rows stored for a removed key or option are kept, unused, never deleted; an encrypted key's sys_secret row stays; Setup shows a non-option value as "no longer available"; removal by hand is deleting the key's row from sys_platform_setting (global-scope manifest) or sys_setting, plus the sys_secret row its value_enc names. This is the ruling's documentation half; it touches none of PR fix(settings)!: retire @objectstack/knowledge-ragflow and the Knowledge page's RAGFlow adapter option #37477's files.
  • Changeset .changeset/37480-settings-retired-option.md (@object-ui/console, @object-ui/i18n, patch).

Read first: ui/apps/console/src/pages/settings/SettingsField.tsx (the retired computation and the extra SelectItem / RadioGroupItem / retired checkboxes), then the new test.

Two-minute check: cd ui/apps/console && pnpm exec vitest run --root ../.. --project @object-ui/console src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsx — expect 10 passed.

Tests

  • New ui/apps/console/src/pages/settings/__tests__/SettingsField.retiredOption-37480.test.tsx renders the real SettingsField: stored ragflow outside the options reads ragflow (no longer available) under en and the zh-pack text under zh-CN; controls: a stored value among the options reads its label with no retired item, and no value still reads the placeholder. Radio: stored ragflow gives a checked, disabled radio named ragflow (no longer available) while Dify stays enabled and unchecked; control: stored dify checks its own item, two radios, no retired item. Multiselect: stored ['ragflow','dify'] shows a checked ragflow (no longer available) checkbox beside a checked Dify; ticking Dify over stored ['ragflow'] sends ['ragflow','dify'] (pins the unchanged keep-on-save); unticking the retired one sends ['dify']; control: members all among the options draw only the two option checkboxes.
  • Ablation: with the select arm's retired condition forced false on disk, the two select named-state cases fail and the controls pass; with the radio arm's forced false, only the radio named-state case fails (1 failed, 5 passed); with the multiselect arm's forced false, its named-state and untick cases fail (2 failed, 8 passed) while the keep-on-save pin passes, as it pins existing behaviour; each restored with git checkout HEAD --.

Acceptance notes

  • The radio arm is in scope (the card's done-when covers every control that shows a stored option value) and gets the same named state in this PR. The multiselect arm gets the named state too, untickable for the reason under What changes. Clearing a retired member server-side is not in this PR (ruling 7190223182 keeps stored rows).
  • The second half of the card (clearing an undeclared key or its sys_secret row from a settings door) is decided as "keep, document" by the ruling above.

Verification

Head ec4e9149bb. Local, targeted (the full farm is CI's):

Console settings tests
  • vitest run --project @object-ui/console src/pages/settings/ (lock VERDICT command-exit 0): Test Files 45 passed (45), Tests 498 passed (498).
  • Ablations: select arm 2 failed, 2 passed (4) on the first head; radio arm 1 failed, 5 passed (6); multiselect arm 2 failed, 8 passed (10); restored.
i18n package
  • pnpm --filter @object-ui/i18n type-check: exit 0. pnpm --filter @object-ui/i18n test: Test Files 111 passed (111), Tests 2028 passed, 13 skipped.
Derived gate families
  • dispatch-gates.mjs --commands derived set run locally; per-command exit codes are in the report comment on the card. check:skill-examples client-SDK surface: NOT MEASURED locally (PREREQUISITE NOT MET, client-react dist has no declarations; this diff adds no TypeScript example). Console type-check is left to CI's Type Check UI (needs every @object-ui package built).

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96

…ons reads as no longer available

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
…ept; how to remove them by hand

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
…ns reads as no longer available

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
@objectstack-fleet objectstack-fleet Bot changed the title fix(console): a stored settings select value the setting no longer offers reads as "no longer available" fix(console): a stored settings select or radio value the setting no longer offers reads as "no longer available" Nov 26, 2026
…t options reads as no longer available

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
@objectstack-fleet objectstack-fleet Bot changed the title fix(console): a stored settings select or radio value the setting no longer offers reads as "no longer available" fix(console): a stored settings select, radio or multiselect value the setting no longer offers reads as "no longer available" Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head ec4e914 · area s2-ai · 2026-11-26T12:41Z

L1 checklist

  • Shape and relation: l1-face.mjs --pr 37536 clean on 12 items; its one flag is all-checks counting a cancelled run of PR-body guards (claim · duplicate · Part-of · single-writer path) (run 45817996082). That run was superseded at the same head by run 45818041855 of the same job, conclusion success, so every check name's newest run at this head is green: 53 success, the rest expected skips, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check success. mergeable_state clean; landing-k K = 1.
  • Fixes #37480 is right: the UI half (select, radio, multiselect name a stored value outside today's options) and the documentation half of ruling 7190223182 (「维持现状,只写文档」 — server unchanged) are both in this diff.
  • Scope: 15 files, all on the card — SettingsField.tsx, its new test, one key in each of the eleven @object-ui/i18n packs, one content/docs section, one changeset. Both touched published packages (@object-ui/console, @object-ui/i18n) carry a patch entry.
  • Sentence-by-sentence reads: the changeset's six sentences match the three arms of the diff (disabled select item, disabled checked radio item, checked multiselect members that only untick) and the new key. The config-resolution.mdx "Retired keys and options" section: 400 UNKNOWN_KEY for an undeclared key matches the service's documented door answer (service-settings CHANGELOG, SETTINGS_UNKNOWN_KEY in process); sys_platform_setting for a global-scope manifest and sys_setting otherwise match config-change-audit.ts:129/140; the value_enc → sys_secret pointer matches settings-service-plugin.ts:135. All true.
  • Deviation accepted as written in the body: retired multiselect members are not disabled, because the server already refuses a multiselect save that holds an off-list member, so a disabled member would make the field unsavable; they can only be unticked.
  • No contract face is hit (Clause-②: no, Metadata-protocol: none, no packages/spec/src/**, check-governed-merges.mjs NOT governed, 275 lines), so no L2 is owed.

Tier: S. Landing: ready + auto-merge by this stroke.


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 12:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 061e342 Nov 26, 2026
66 of 67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37480-settings-retired-option branch November 26, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

settings: a stored value or secret whose manifest option/key was removed is shown blank and can never be cleared (seen with knowledge ragflow)

2 participants